<!-- Begin groups/edit.tpl -->
<form method="post" action="?module=groups&action=edit&type={$smarty.get.type}&gid={$smarty.get.gid}&submit=true">
{opentable}
{titlebar colspan=2 title=$title}
<tr class="sectiontableheader" align="center">
<td width="50%">{$lg->add}    {$plural|capitalize}</td>
<td width="50%">{$lg->remove} {$plural|capitalize}</td>
</tr>
<tr class="sectiontableentry1">
	<td width="50%">
		<select name="add[]" size="30" multiple="multiple" style="width: 100%;">
			{foreach from=$data item=item}
				{if is_array($list)}
					{if !array_key_exists($item.id,$list)}
						{if $item.id < 0}
							<option value="{$item.id}" disabled>{$item.field}</option>
						{else}
							<option value="{$item.id}"> &emsp;&emsp; {$item.field}</option>
						{/if}
					{/if}
				{elseif $item.id < 0}
					<option value="{$item.id}" disabled>{$item.field}</option>
				{else}
					<option value="{$item.id}"> {$item.field}</option>
				{/if}
			{/foreach}
		</select>
	</td>
	<td width="50%">
	<select name="del[]" size="30" multiple="multiple" style="width: 100%;">
		{foreach from=$list key=key item=val}
			<option value="{$key}">{$val}</option>
		{/foreach}
		</select>
	</td>
</tr>
<tr class="titlebar"><td colspan="2"><input type="submit" class="button" value={$lg->save} /></td></tr>
</table>
</form>

<!-- End groups/edit.tpl -->